When using frames you will want more control over the visitor's browser. For example, when a visitor clicks a link, you will want to be able to define which frame loads the new page. Fortunately, it is simple to designate which window will load what URL using the TARGET attribute.
Say you have defined a webpage with two frames:
<frame src="frametoolbar.HTML" name="toolbar">
<frame src="FrameWelcome1.HTML" name="mainpage">
The frames above are called ‘toolbar’ and ‘mainpage’.
To open a URL in either window use the TARGET attribute:
<A HREF="http://www.sausagetools.com" TARGET="mainpage"> Click here to go to Sausage Software </A>
If the user clicks on this link, Sausage Software’s home page is opened up in the frame called ‘mainpage’.
In addition to using the named frames as targets, you can also use four pre-defined targets:
_blank |
Targets a new unnamed window. |
_self |
Loads into the window the link is in. |
_parent |
Loads into frameset parent, defaults to _self if no parent. |
_top |
Loads into the full window, defaults to _self if at top. |
Use the Insert Link dialog to easily create links with associated targets.